<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style>

        /* div{
            width: 100px;
            height: 100px;
            border: 1px red solid;
            margin: 10px;
        } */

        span{
            background-color: yellow;
            padding: 10px;
            margin: 10px;

            /* span 行内元素 margin padding 左右边距有效 上下无效  */

        }

        img{
            padding: 10px;
            margin: 10px;
        }
        /* img 行内块 可以设置上下左右 */
    </style>

</head>
<body>


<div></div>

<span>我是span</span>
    


<div>ssssssssssssssss</div>


<img src="./image/1.webp" alt="">
</body>
</html>